package com.moshang.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author xww
 * Created on 2019/7/2.
 */
@TableName("sys_dept")
@Getter
@Setter
public class SysDept extends BaseEntity implements Serializable {


    @TableId(type = IdType.AUTO)
    private Integer id;

    private String deptName;
    private Integer parentId;
    private Integer sort;

    @TableField(exist = false)
    private List<SysDept> children;
}
